<div id="messageContainer">
	<p style="border-bottom:3px solid #000;padding-bottom:5px;font-weight:bold;">DELETE</p>
	<?if($delbox):?>
		<table class="table">
			<tr class="info">
				<td><span class="label label-inverse">Date:</span></td>
				<td><span class="label label-inverse">From:</span></td>
				<td><span class="label label-inverse">To:</span></td>
				<td><span class="label label-inverse">Title:</span></td>
				<td></td>
			</tr>
			<?foreach($delbox as $k => $v):?>
				<?
					foreach($v['recipients'] as $vv)
					{
						$recipients[$k][] = strtolower($vv->recipient);
					}


					// pp($recipients);
					if($recipients)
					{
						$f_rec = implode(' , ',array_map('ucwords',$recipients[$k]));
					}else{
						$f_rec = 'None';
					}
				?>
				<tr>
					<td><?=$v['data']->msg_created;?></td>
					<td><?=ucwords(strtolower($v['data']->origin));?></td>
					<td><b>ME</b> and <span data-tooltip class="has-tip" title="<?=$f_rec;?>">others</span></td>
					<td><?=$v['data']->title;?></td>
					<td>
						<div class="btn-group">
							<a href="<?=site_url('message/thread/'.__link($v['data']->thread_id));?>" class="btn btn-mini" data-tooltip class="has-tip" title="View this message thread"><i class="icon-eye-open"></i></a>
							<a href="<?php echo site_url('message/del_permanently/'.__link($v['data']->thread_id)); ?>" class="btn btn-mini" data-tooltip class="has-tip" title="Remove permanently"><i class="icon-remove"></i></a>
							<!--<a href="#" class="btn btn-mini" data-tooltip class="has-tip" title="Reply To this Thread"><i class="icon-comment"></i></a>
							<a href="#" class="btn btn-mini" data-tooltip class="has-tip" title="Reply To The Sender Only."><i class="icon-envelope"></i></a>-->
						</div>
					</td>
				</tr>
			<?endforeach;?>
		</table>
	<?else:?>
		<div class="alert-box">No Message</div>
	<?endif;?>
</div>